@include('admin.layout.bone_header')




<table class="layui-hide" id="think-table" lay-filter="think-table"></table>

<script type="text/html" id="barDemo">




</script>

<script>

    layui.use('table', function () {
        let table = layui.table;
        UI.getPageTable(table, "{{route('admin.bills.bills')}}", [
            {field: 'bills_id', title: 'ID', width: 80, sort: true, fixed: 'left'}
            , {field: 'title', title: ' 任务标题'}
            , {field: 'user_id', title: ' 用户ID'}
            , {field: 'price', title: ' 数量'}
            , {field: 'created_at', title: ' 时间',templet:function (d) {
                   return Utils.paraseTime(d['created_at'])
                }}
        ]);

        table.on('tool(think-table)', function (obj) {
            let data = obj.data;

        });
        let $ = layui.$, active = {

        };
        $('.layui-btn-container .layui-btn').on('click', function () {
            let type = $(this).data('type');
            active[type] ? active[type].call(this) : '';
        });

        $('.search .layui-btn').on('click', function () {
            let type = $(this).data('type');
            active[type] ? active[type].call(this) : '';
        });

    })


</script>


@include('admin.layout.bone_footer')
